function task1() {
	return new Promise((resolve, reject) => {
		console.log('执行task1的promise')
		setTimeout(() => {
			console.log('执行延时1')
			resolve(1)
		},500)
	})
}
function task2() {
	return new Promise((resolve, reject) => {
		console.log('执行task2的promise')
		setTimeout(() => {
			console.log('执行延时2')
			resolve(2)
		},100)
	})
}

function run() {
	return Promise.all([task1(), task2()])
}
const res = run()
res.then(([r1, r2]) => {
	// console.log(r[0] + r[1])
	console.log(r1+r2)
	console.log('异步函数执行完毕')
})
console.log('非异步函数代码执行完毕')
console.log("修改过js")